using System;
using System.Collections.Generic;
using System.Text;

namespace Data.Probabilities
{
    public class dCell
    {
        //delete this row
        private int cogNo;
        private double length;
        public dCell(int cogNo, double length)
        {
            this.cogNo = cogNo;
            this.length = length;
        }
        public double Length
        {
            get
            {
                return this.length;
            }
            set
            {
                this.length = value;
            }
        }
        public int CogNo
        {
            get
            {
                return this.cogNo;
            }
        }
        public static double operator +(dCell A, dCell B)
        {
            if (A.CogNo != B.CogNo)
                throw new Exception("Can't Add two different sCells");
            else
                return A.Length + B.Length;
        }
        public double multBy(double multiply)
        {
            return this.length * multiply;
        }
        public static bool operator >(dCell A, dCell B)
        {
            return (A.cogNo > B.cogNo);
        }
        public static bool operator <(dCell A, dCell B)
        {
            return (A.cogNo < B.cogNo);
        }
        public static bool operator ==(dCell A, dCell B)
        {
            return (A.cogNo == B.cogNo);
        }
        public static bool operator !=(dCell A, dCell B)
        {
            return (A.cogNo != B.cogNo);
        }
    }

}
